package com.tao.design.component;

import java.util.ArrayList;

/**
 * @projectName: DesignMode
 * @package: com.tao.design.component
 * @className: ProjectManager
 * @author: TT_Hugo
 * @description: 定义Composite类ProjectManager类
 * @date: 2022/12/27 20:55
 * @version: 1.0
 */
public class ProjectManager extends Employer{

    public ProjectManager(String name){
        setName(name);
        employers = new ArrayList<Employer>();
    }
    @Override
    public void add(Employer employer) {
        employers.add(employer);

    }

    @Override
    public void delete(Employer employer) {
        employer.delete(employer);
    }
}
